package cn.bqjr.eily.redis.spring.boot;

import java.util.Collection;
import java.util.Set;
import java.util.concurrent.TimeUnit;

public interface IRedisService {

    void put(String key, Object value, long expire);

    void put(String key, Object value);

    <T> T get(String key, Class<T> cls);

    void delete(String key);

    void delete(Collection<String> keys);

    void expire(String key, long expire);

    Long getExpire(String key);

    Long getExpire(String key, TimeUnit unit);

    boolean exist(String key);

    Set<String> keys(String pattern);
}
